﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AMS.Web.BackStageManagement
{
    public partial class MainLeft : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            { 
                if(Request.Cookies["Code"] == null || Request.Cookies["Role"].Value != "admin")
                {
                    Response.Redirect("../Default.aspx");
                }
               
            }
        }
 
    }
}
